package de.hpi.generator.model.dependencies;

import de.hpi.generator.model.Column;
import de.hpi.generator.model.ColumnsCollection;

public abstract class InclusionDependency {

    protected Column aDependent = null;
    protected Column aReferenced = null;

    public InclusionDependency(Column aDependent, Column aReferenced) {
        this.aDependent = aDependent;
        this.aReferenced = aReferenced;
    }

    public Column getDependent() {
        return aDependent;
    }

    public Column getReferenced() {
        return aReferenced;
    }

    public ColumnsCollection getDependentColumns() {
        ColumnsCollection result = new ColumnsCollection(null);
        result.add(aDependent);
        return result;
    }

    public ColumnsCollection getReferencedColumns() {
        ColumnsCollection result = new ColumnsCollection(null);
        result.add(aReferenced);
        return result;
    }

    public void generateDependentData() throws Exception {
    }
}
